home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
comm
/
mail
/
YAMscripts.lha
/
LoadConfig.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-05-16
|
976b
|
32 lines
/* Restarts YAM with new configuration. v 1.0 by Kai Nikulainen
**
** Because there is no ARexx command for loading a configuration file, the
** script needs to quit YAM and then start it again with another config.
**
** Clone this script and you can have own menu item for each configuration.
**
** If you have any problems or suggestions, mail knikulai@utu.fi
*/
options results
call addlib('rexxsupport.library',0,-30,0) /* Delay needs this */
/*
** Change the following variables to suit your system:
*/
file='YAM:.config' /* Load this config file */
dir='YAM:' /* Maildir for this configuration */
opts='' /* Usable options here are NOCHECK, HIDE, DEBUG, POP3=xxxx */
/* and SMTP=xxxx. The variable can be left empty */
address 'YAM' 'Quit'
call delay(50)
do while pos(p,'YAM') /* Just to make sure YAM isn't running anymore */
call delay(50) /* It is probably unnecessary */
end
address command 'run >nil: YAM:YAM prefsfile='file 'maildir='dir opts
exit